package com.zzw.thread.communicate;

import java.io.PipedInputStream;

/**
 * @author zzw
 * @see
 * @since 2018/3/27
 */
public class ThreadRead extends Thread {

    private ReadData read;
    private PipedInputStream input;

    public ThreadRead(ReadData read, PipedInputStream input) {
        super();
        this.read = read;
        this.input = input;
    }

    @Override
    public void run() {
        read.readMethod(input);
    }
}
